package com.csd.homework3;

import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@service
public class EmployeeServiceImpl implements EmployeeService {
    @Autowired
    EmployeeMapper employeeMapper;
    public Employee findOneById(Integer id){
        return employeeMapper.findOneById(id);
    }

    @Override
    public List<Employee> findAll() {
        return employeeMapper.findAll();
    }
}
